using System;
public class Singleton<T> where T: new()
{
	// Fields
	private static T s_Instance;
		
	// Methods
	public static T GetInstance()
	{
		if (Singleton<T>.s_Instance == null)
		{
			Singleton<T>.s_Instance = new T();
		}
		return Singleton<T>.s_Instance;
	}
}

